{\rtf1\ansi\deff0\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Times New Roman;}{\f4\fswiss\fprq0\fcharset0 Microsoft Sans Serif;}{\f5\fmodern\fprq1\fcharset0 Courier New;}{\f6\fnil\fprq0\fcharset0 consolas;}{\f7\fswiss\fprq2\fcharset0 Arial Unicode MS;}{\f8\fnil\fprq2\fcharset0 MS Mincho;}{\f9\fnil\fprq0\fcharset0 Tahoma;}}
{\colortbl;\red0\green0\blue0;\red127\green0\blue85;\red128\green128\blue128;\red0\green128\blue0;\red43\green145\blue175;\red0\green0\blue192;}
{\stylesheet{\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033\snext1 Normal;}
{\s2\sb240\sa120\keepn\rtlch\af2\afs28\lang255\ltrch\dbch\af8\langfe255\hich\f2\fs28\lang1033\loch\f2\fs28\lang1033\sbasedon1\snext3 Heading;}
{\s3\sa120\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033\sbasedon1\snext3 Body Text;}
{\s4\sa120\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033\sbasedon3\snext4 List;}
{\s5\sb120\sa120\rtlch\af9\afs24\lang255\ai\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\i\loch\fs24\lang1033\i\sbasedon1\snext5 caption;}
{\s6\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033\sbasedon1\snext6 Index;}
{\s7\sb120\sa120\rtlch\afs24\lang255\ai\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\i\loch\fs24\lang1033\i\sbasedon1\snext7 caption;}
{\s8\rtlch\af5\afs20\lang255\ltrch\dbch\af5\langfe255\hich\f5\fs20\lang1033\loch\f5\fs20\lang1033\sbasedon1\snext8 Preformatted Text;}
}
{\info{\creatim\yr2011\mo7\dy19\hr5\min40}{\revtim\yr0\mo0\dy0\hr0\min0}{\printim\yr0\mo0\dy0\hr0\min0}{\comment StarWriter}{\vern3000}}\deftab709
{\*\pgdsctbl
{\pgdsc0\pgdscuse195\pgwsxn12240\pghsxn15840\marglsxn1134\margrsxn1134\margtsxn1134\margbsxn1134\pgdscnxt0 Standard;}}
{\*\pgdscno0}\paperh15840\paperw12240\margl1134\margr1134\margt1134\margb1134\sectd\sbknone\pgwsxn12240\pghsxn15840\marglsxn1134\margrsxn1134\margtsxn1134\margbsxn1134\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
\pard\plain \ltrpar\s1\ql\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\f4\fs20\lang1033\loch\f4\fs20\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using System;}
\par \pard\plain \ltrpar\s1\ql\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\f4\fs20\lang1033\loch\f4\fs20\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using System.Collections.Generic;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using System.Linq;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using System.Text;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Graphics;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Math;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Content;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Scene.Shape;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Scene;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Core;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using System.Runtime.InteropServices;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 using Tesla.Scene.Extension;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 namespace TeslaSamples.Effects \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 /// <summary>}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 /// Wireframe rendering based on the method described here: http://www2.imm.dtu.dk/~jab/Wireframe/}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 /// </summary>}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 [AppDescription("Thick Wireframes", PlatformCapabilities.Direct3D10 | PlatformCapabilities.XNA4, "ThickWireframeImage", "ThickWireframeDesc", "ThickWireframeSource")]}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 public class ThickWireframe : BasicApp \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 protected override void LoadContent() \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 Mesh teapot = new Teapot("Utah Teapot");}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 teapot.SetScale(30f);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 teapot.Translation = new Vector3(0, -50, 0);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 teapot.Material = ContentManager.Load<Material>("LitBasicColor.tem").Clone();}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 teapot.Material.SetRenderState(RasterizerState.CullNone);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 Mesh wireframe = CreateWireframeData("Utah Wireframe", teapot.MeshData);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireframe.RenderBucketType = RenderBucketType.PostBucket;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireframe.Transform.Set(teapot.Transform);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 Material wireMat = new Material("WireMaterial");}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.LoadEffect(ContentManager.Load<Effect>("Shaders//WireframeEffect.fx").Clone());}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.SetEngineParameter("WVP", EngineValue.WorldViewProjection);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.SetParameter("WinScale", new Vector2(Renderer.CurrentCamera.Viewport.Width / 2, Renderer.CurrentCamera.Viewport.Height / 2));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.SetParameter("WireColor", new Vector3(.8f, .1f, .1f));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.SetParameter("FillColor", new Vector4(.7f, .8f, .9f, .5f));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.SetRenderState(BlendState.AlphaBlendNonPremultiplied);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireMat.SetRenderState(RasterizerState.CullNone);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 wireframe.SetMaterial(wireMat);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 RootNode.AddChild(teapot);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 RootNode.AddChild(wireframe);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 RootNode.AddController(new RotateController(Vector3.Up, 25));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 private Mesh CreateWireframeData(String name, MeshData md) \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 if(md.PrimitiveType != PrimitiveType.TriangleList) \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 return null;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 DataBuffer<Vector3> positions = md.Positions;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 if(positions == null) \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 return null;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 DataBuffer<Vector4> pos0 = new DataBuffer<Vector4>(md.IndexCount);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 DataBuffer<Vector3> pos1 = new DataBuffer<Vector3>(md.IndexCount);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 DataBuffer<Vector3> pos2 = new DataBuffer<Vector3>(md.IndexCount);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 Mesh mesh = new Mesh(name);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 Vector3[] tri = new Vector3[3];}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 for(int i = 0; i < md.PrimitiveCount; i++) \{}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 md.GetPrimitive(i, tri);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos0.Set(new Vector4(tri[0], 0));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos1.Set(tri[1]);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos2.Set(tri[2]);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos0.Set(new Vector4(tri[1], 1));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos1.Set(tri[0]);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos2.Set(tri[2]);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos0.Set(new Vector4(tri[2], 2));}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos1.Set(tri[0]);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch                 }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 pos2.Set(tri[1]);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 mesh.MeshData.UseIndexedPrimitives = false;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 mesh.MeshData.AddBuffer(VertexSemantic.Position, 0, pos0);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 mesh.MeshData.AddBuffer(VertexSemantic.Position, 1, pos1);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 mesh.MeshData.AddBuffer(VertexSemantic.Position, 2, pos2);}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 mesh.MeshData.Reconstruct();}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch             }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 return mesh;}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch         }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch     }{\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par \pard\plain \ltrpar\s1\rtlch\afs24\lang255\ltrch\dbch\af7\langfe255\hich\fs24\lang1033\loch\fs24\lang1033 {\rtlch \ltrch\loch\f4\fs20\lang1033\i0\b0 \}}
\par }